home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_3
/
psm
/
source
/
gadoutlinelib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-28
|
691b
|
29 lines
void __regargs __autoopenfail(char *);
#include <proto/exec.h>
struct Library *GadOutlineBase ;
static void *libbase;
extern long __gadoutlinever;
void __stdargs _STI_opengadoutline(void)
{
GadOutlineBase = libbase =
(void *)OpenLibrary("gadoutline.library", __gadoutlinever);
if(GadOutlineBase == NULL)
GadOutlineBase = libbase =
(void *)OpenLibrary("PROGDIR:gadoutline.library", __gadoutlinever);
if (GadOutlineBase == NULL)
__autoopenfail("gadoutline.library");
}
void __stdargs _STD_closegadoutline(void)
{
if (libbase)
{
CloseLibrary((struct Library *)libbase);
libbase = GadOutlineBase = NULL;
}
}